-- GENERATED SPELL FOR [Drakkari Oracle] --


function spell0_26795(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26795', 3000, 1)
end

function spell1_26795(pUnit, Event) --@Warped Body,n/a--
pUnit:FullCastSpellOnTarget(52431,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26795', 6266, 1)
end

function spell2_26795(pUnit, Event) --@Warped Mind,n/a--
pUnit:FullCastSpellOnTarget(52430,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26795', 6320, 1)
end

function Sorts_26795(pUnit, Event)
local choix_sorts_26795 = math.random(0, 2)
if choix_sorts_26795 == 0 then
pUnit:RegisterEvent('spell0_26795', 1, 1)
end
if choix_sorts_26795 == 1 then
pUnit:RegisterEvent('spell1_26795', 1, 1)
end
if choix_sorts_26795 == 2 then
pUnit:RegisterEvent('spell2_26795', 1, 1)
end
end

function mob26795_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26795', math.random(1500, 3000), 1)
end

function mob26795_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26795_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26795_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26795, 1, 'mob26795_Action')
RegisterUnitEvent(26795, 2, 'mob26795_Leave')
RegisterUnitEvent(26795, 3, 'mob26795_Kill')
RegisterUnitEvent(26795, 4, 'mob26795_Die')
